﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="reg_name.aspx.cs" Inherits="lcmyjobs.Web.users.reg_name" %>

<%@ Register Src="../Controls/foot.ascx" TagName="foot" TagPrefix="uc1" %>
<%@ Register Src="../Controls/Bottom1.ascx" TagName="Bottom1" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Styles/css.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../Scripts/drag.js" type="text/javascript"></script>
    <script src="../Scripts/city_arr.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.js" type="text/javascript"></script>
    <script src="../Scripts/city_func.js" type="text/javascript"></script>
    <link href="../css/h_edu.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div id="wrapper">
        <div class="top">
            <div class="logo">
            </div>
            <div class="geri">
                个人求职注册</div>
            <div class="site_title">
                <div class="site_title1">
                </div>
                <div class="site_title2">
                    <ul>
                        <li class="curbar">基本资料&bull;联系方式</li>
                        <li>&nbsp; &rarr; &nbsp;</li>
                        <li class="curbar2">教育背景&bull;工作经验</li>
                        <li>&nbsp; &rarr; &nbsp;</li>
                        <li class="curbar2">求职意向</li>
                        <li>&nbsp; &rarr; &nbsp;</li>
                        <li class="curbar2">管理中心（找工作）</li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="geet">
            <div align="center">
                <span>&nbsp;&nbsp;欢迎注册个人会员!</span>
            </div>
            <div style="height:16px;"></div>
            <p align="center">
                <em  style="color:#ff6600;">友情提示：带*的项目为必填项；虚假的简历将不能通过审核并被及时删除！</em></p>
        </div>
        
        <div class="middle">
            <div class="main_data ">
                <!--one  -->
                <div class="main_data_title">
                    <h3>基本资料&bull;联系方式</h3>
                </div>
                <br />
                <div class="main_data_list" style="margin-left:60px;">
                    <table cellspacing="0" cellpadding="0" width="820px" border="0"  style="line-height: 24px;">
                        <tr >
                            <td height="25" class="txtalign" >
                                <span class="style2">*</span><span class="words">用户账号：</span>
                            </td>
                            <td height="25" width="*" align="left">
                                <asp:TextBox ID="txtname" runat="server" onblur="javascript:checkname(this);"  CssClass="inputText1"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtname"
                                    ErrorMessage="RequiredFieldValidator" Display="Dynamic">不能为空</asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtname"
                                    ErrorMessage="RegularExpressionValidator" ValidationExpression="[0-9a-zA-Z_]{8,20}"
                                    Display="Dynamic">格式不对</asp:RegularExpressionValidator>
                                <span id="mymsg" style="display: block; color: #ff6600;"></span>
                            </td>
                            <td height="25" align="left" class="listmsg">
                                8-20位，可以是字母、数字、下划线的组合
                            </td>
                        </tr>
                        <tr>
                            <td height="25" class="txtalign">
                                <span class="style2">*</span><span class="words" >设置密码：</span>
                            </td>
                            <td height="25" width="*" align="left">
                                <asp:TextBox ID="txtpwd" runat="server" TextMode="Password" CssClass="inputText1"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtpwd"
                                    ErrorMessage="RequiredFieldValidator" Display="Dynamic">不能为空</asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtpwd"
                                    ErrorMessage="RegularExpressionValidator" ValidationExpression="[0-9a-zA-Z_]{8,10}"
                                    Display="Dynamic">格式不对</asp:RegularExpressionValidator>
                            </td>
                            <td height="25" width="250px" align="left" class="listmsg">
                                8-10位，可以是字母、数字、下划线的组合
                            </td>
                        </tr>
                        <tr>
                            <td height="25" class="txtalign">
                                <span class="style2">*</span><span class="words">确认密码</span>：
                            </td>
                            <td height="25" width="*" align="left">
                                <asp:TextBox ID="txtpwdre" runat="server" TextMode="Password"  CssClass="inputText1"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtpwdre"
                                    ErrorMessage="RequiredFieldValidator" Display="Dynamic">不能为空</asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtpwd"
                                    ControlToValidate="txtpwdre" ErrorMessage="CompareValidator" Display="Dynamic">两次密码不一致</asp:CompareValidator>
                            </td>
                            <td height="25" align="left" class="listmsg">
                                重新输入密码
                            </td>
                        </tr>
                       
                                
                       
                    </table>
                </div>
            </div>
            <!--one结束-->
            <div class="main_data" >
                <!--two-->

                <div class="main_data_list" style="margin-left:60px;">
                    <table cellspacing="0" cellpadding="0" width="820px" border="0" style="line-height: 24px;">
                        <tr>
                            <td height="25" class="txtalign">
                                <span class="style2">*</span><span class="words" >姓名：</span>
                            </td>
                            <td height="25" width="*" align="left">
                                <asp:TextBox ID="txttruename" runat="server" CssClass="inputText1"> </asp:TextBox>
                                
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txttruename"
                                    ErrorMessage="RequiredFieldValidator" Display="Dynamic">不能为空</asp:RequiredFieldValidator>
                                  
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="txttruename"
                                    ErrorMessage="RegularExpressionValidator" ValidationExpression="[\u4e00-\u9fa5]{2,4}" Display="Dynamic">只能输入2-4位汉字</asp:RegularExpressionValidator>

                            </td>
                            <td height="25" width="*" align="left" class="listmsg">
                                如果不愿意公开姓名，建议以 您的姓氏 加 先生或女士 填写此信息
                            </td>
                        </tr>
                        <tr>
                            <td height="25" class="txtalign">
                                <span class="style2">*</span><span class="words">性别：</span>
                            </td>
                            <td height="25" width="*" align="left" colspan="2">
                                <asp:RadioButton ID="rbtMan" runat="server" Checked="True" Text=" 男" GroupName="sex"
                                    Style="margin-right: 20px;" />
                                <asp:RadioButton ID="rbtWomen" runat="server" Text=" 女" GroupName="sex" />
                            </td>
                        </tr>
                        <tr>
                            <td height="25" class="txtalign">
                                <span class="style2">*</span><span class="words" >年龄：</span>
                            </td>
                            <td height="25" width="*" align="left" colspan="2">
                                <asp:TextBox ID="txtage" runat="server" Width="48px" CssClass="inputText1"></asp:TextBox>
                                &nbsp;岁
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtage"
                                    ErrorMessage="RequiredFieldValidator" Display="Dynamic">不能为空</asp:RequiredFieldValidator>
                                <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtage"
                                    ErrorMessage="RangeValidator" MaximumValue="100" MinimumValue="10" Type="Integer"
                                    Display="Dynamic">10－100之间</asp:RangeValidator>
                            </td>
                        </tr>
                        <tr>
                            <td height="25" class="txtalign">
                               <span class="style2">*</span><span class="words" >身高：</span>
                            </td>
                            <td height="25" width="*" align="left" colspan="2">
                                <asp:TextBox ID="txtheight" runat="server" Width="48px" CssClass="inputText1"></asp:TextBox>
                                &nbsp;厘米
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtheight"
                                    ErrorMessage="RequiredFieldValidator" Display="Dynamic">不能为空</asp:RequiredFieldValidator>
                                <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="txtheight"
                                    ErrorMessage="RangeValidator" MaximumValue="250" MinimumValue="50" Type="Integer"
                                    Display="Dynamic">50－250之间</asp:RangeValidator>
                            </td>
                        </tr>
                        
                        <tr>
                            <td height="25" class="txtalign">
                               <span class="style2">*</span> <span class="words">户籍：</span>
                            </td>
                            <td height="25" width="*" align="left" colspan="2">
                                <asp:TextBox ID="txthuji" runat="server" onfocus="hukouSelect()" onclick="hukouSelect()"  CssClass="inputText1" ></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td height="25" class="txtalign">
                                <span class="style2">*</span><span class="words">现居住地：</span>
                            </td>
                            <td height="25" width="*" align="left" colspan="2">
                                <asp:TextBox ID="txtaddress" runat="server" onclick="residencySelect()"
                                    onfocus="residencySelect()" CssClass="inputText1" ></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <!--two结束-->
            <div class="main_data">
                <!--three-->

                <div class="main_data_list" style="margin-left:60px;">
                    <table cellspacing="0" cellpadding="0" width="820px" border="0" style="line-height: 24px;">
                        <tr>
                            <td height="25">
                                <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                    <tr>
                                        <td height="25" class="txtalign">
                                           <span class="style2">*</span> <span class="words" >邮箱：</span>
                                        </td>
                                        <td height="25" width="*" align="left">
                                            <asp:TextBox ID="txtemail" runat="server" onblur="javascript:checkemail(this);" CssClass="inputText1"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtemail"
                                                ErrorMessage="RequiredFieldValidator" Display="Dynamic">不能为空</asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtemail"
                                                ErrorMessage="RegularExpressionValidator" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                                Display="Dynamic">地址不合法</asp:RegularExpressionValidator>
                                            <span id="myemail"></span>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td height="25" style="padding-left: 150px; color: #565d63; ">
                                <span style="color:#ff6600;">重要！</span>请输入您的常用邮箱，它将是您重置密码的唯一依据
                            </td>
                        </tr>
                        <tr>
                            <td height="25">
                                <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                    <tr>
                                        <td height="25" class="txtalign">
                                           <span class="style2">*</span> <span class="words" >手机：</span>
                                        </td>
                                        <td height="25" width="*" align="left">
                                            <asp:TextBox ID="txtphone" runat="server" Columns="11" CssClass="inputText1"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtphone"
                                                ErrorMessage="RequiredFieldValidator" Display="Dynamic">不能为空</asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="txtphone"
                                                ErrorMessage="RegularExpressionValidator" ValidationExpression="\d{11}" Display="Dynamic">格式不对</asp:RegularExpressionValidator>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td height="25" style="padding-left: 150px; color: #565d63; ">
                                <em>安全提示：</em>请填写能够联系到您本人的手机号码，不要填写家庭或宿舍固定电话，以防诈骗 
                            </td>
                        </tr>
                        <tr>
                            <td height="25">
                                <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                    <tr>
                                        <td height="25" class="txtalign">
                                            QQ号码：
                                        </td>
                                        <td height="25" width="*" align="left">
                                            <asp:TextBox ID="txtonlinecontact" runat="server" Width="80px" CssClass="inputText1"></asp:TextBox>                                           
                                        </td>
                                        <td height="25"  align="left" class="listmsg">
                                            <span
                                                class="listmsg" > 非必填项！您愿意公开在线联系方式，注意求职风险</span></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td height="25" align="center" >
                                &nbsp;
                            </td>
                        </tr>
                         <tr>
                            <td height="25" align="center" colspan="3">
                                     <input id="mych" type="checkbox" checked="checked" style="padding-right:6px;" /></span><span>&nbsp;我已经阅读并同意聊城就业网的<a href="../service.html" style="color: #315AAA;padding-left:6px; padding-right:100px;" target="_blank">服务声明</a>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <!--three结束-->
        </div>
        <div class="button">
            <asp:Button ID="btnOK" runat="server" OnClick="btnOK_Click" CssClass="btn" Text="下一步"
                OnClientClick="return mycht();" />
        </div>
        <!--底部-->
        <uc2:Bottom1 ID="Bottom11" runat="server" />
        <!--底部-->
    </div>
    
    </form>
    <div style="display: none" id="maskLayer">
        <iframe style="filter: alpha(opacity=50)" id="maskLayer_iframe" src="about:blank"
            frameborder="0" scrolling="no"></iframe>
        <div style="filter: alpha(opacity=50); -moz-opacity: 0.5; opacity: 0.5" id="alphadiv">
        </div>
        <div id="drag">
            <h3 id="drag_h">
            </h3>
            <div id="drag_con">
            </div>
            <!-- drag_con end -->
        </div>
    </div>
    <!-- maskLayer end -->
    <div>
    </div>
    <!-- alpha div end -->
    <div style="display: none" id="sublist">
    </div>
    <script language="javascript" type="text/javascript">
        $().ready(function () { $("#txtonlinecontact").show(); })
        function showline(val) {
            if ($(val).attr("checked"))
                $("#txtonlinecontact").show();
        }
        function checkname(val) {
            var uname = val.value;
            reg = /^[0-9A-Za-z_]{8,20}$/;
            if (reg.test(uname))
                $.ajax({ type: "POST", url: "checkname.aspx", data: "name=" + uname + "&t=1", success: function (msg) {
                    if (msg == "0") {
                        $("#mymsg").html("该用户名已被使用，请使用其它用户名！");
                        $("#txtname").val("");
                        alert("该用户名已被使用，请使用其它用户名！");
                        $("#mymsg").css("color","Red");
                        $("#txtname").focus();
                    } else {
                        $("#mymsg").html("该用户名可以使用！");
                        $("#mymsg").css("color", "Green");
                    }
                }, error: function (XMLResponse) { alert(XMLResponse.responseText) }
                });
        }
        function checkemail(val) {
            var uname = val.value;
            reg = /^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
            if (reg.test(uname))
                $.ajax({ type: "POST", url: "checkname.aspx", data: "name=" + uname + "&t=0",
                    success: function (msg) {
                        if (msg == "0") {
                            $("#myemail").html("该邮箱已被使用，请使用其它用户名！");
                            $("#txtemail").val("");
                            alert("该邮箱已被使用，请使用其它邮箱！");
                            $("#myemail").css("color", "Red");
                            $("#email").focus();
                           
                        }
                        else {
                            $("#myemail").html("该邮箱可以使用！");
                            $("#myemail").css("color", "Green");

                        }
                    }, error: function (XMLResponse) { alert(XMLResponse.responseText) }
                });
        }
        function mycht() {
            if ($("#mych:checked").length == 0) { alert('您还没有同意本网站的服务条款！'); return false; }

        }
        // 是否在数组内
        function in_array(needle, haystack) {
            if (typeof needle == 'string' || typeof needle == 'number') {
                for (var i in haystack) {
                    if (haystack[i] == needle) {
                        return true;
                    }
                }
            }
            return false;
        }


    </script>
</body>
</html>
